﻿<%@ WebHandler Language="C#" Class="ContractInfo" %>

using System;
using System.Web;
using System.Text;
using System.Collections.Generic;
using System.Data;
using Chenxin.Lib.Utility;
using Chenxin.Lib.Business;
using Chenxin.Lib.Business.BLL;

public class ContractInfo : AjaxHandlerBase
{

    public void ProcessRequest(HttpContext context)
    {
        try
        {
            context.Response.ContentType = "text/plain";
            context.Response.AddHeader("pragma", "no-cache");
            context.Response.AddHeader("cache-control", "");
            context.Response.CacheControl = "no-cache";

            string strOp = context.Request["op"];
            string strRet = string.Empty;
            switch (strOp.ToLower())
            {
                //添加合同
                case "add":
                    Add(context);
                    break;
                default:
                    break;
            }
            context.Response.Write(strRet);
        }
        catch (Exception ex)
        {
            context.Response.Write(retExecResult(Constants.ExecResult.Error, ex.Message, ""));
        }
    }

    private void Add(HttpContext context)
    {
        try
        {
            //Chenxin.Lib.Business.Entity.ContractInfo
        }
        catch(Exception e)
        {
        }
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}